import { defineStore } from 'pinia'

export const useUserStore = defineStore('user', {
  state: () => ({
    // 用户基本信息 (users 表)
    userInfo: {
      userId: null,
      username: '',
      email: '',
      phoneNumber: '',
      bio: '',
      createdAt: '',
      lastLogin: ''
    },
    // 用户详细信息 (user_info 表)
    userDetails: {
      userId: null,
      avatarUrl: '',
      age: null,
      gender: '',
      height: null,
      weight: null,
      address: '',
      modelPhotoUrl: '',
      createdAt: ''
    },
    // 用户统计信息
    stats: {
      clothesCount: 0,
      tryOnCount: 0,
      favoriteCount: 0
    },
    // 分类统计信息
    categoryStats: {
      tops: 0,
      dress: 0,
      pants: 0,
      coat: 0,
      shoes: 0,
      watch: 0,
      accessories: 0
    }
  }),

  actions: {

  }
})
